/**
 * @FileName: Log4jExPatternLayout.java
 * @Author
 * @Description:
 * @Date 2016年8月19日 下午4:30:27
 * @CopyRight ZTE Corporation
 */
package cn.hpclub.server.util;

import org.apache.log4j.PatternLayout;
import org.apache.log4j.helpers.PatternParser;

public class Log4jExPatternLayout extends PatternLayout{
    public Log4jExPatternLayout(String pattern){
        super(pattern);
    }

    public Log4jExPatternLayout(){
        super();
    }

    /**
     * 重写createPatternParser方法，返回PatternParser的子类
     */
    @Override
    protected PatternParser createPatternParser(String pattern){
        return new Log4jExPatternParser(pattern);
    }

}
